import axios from "axios";

// 添加战队
export function addTeam(data) {
  return axios.post(`http://localhost:8080/team/add`, 
    // return axios.post(`localhost:8080/team/add`, 
    data,
  )

}

// 删除战队
export function delTeam(data) {
  return axios.delete(`http://localhost:8080/team/remove`, 
    // return axios.delete(`http://127.0.0.1:8080/team/remove`, 
    // return axios.post(`localhost:8080/team/remove`, 
      data,
  )
}

// 查询全部战队
export function getAllTeam() {
    return axios.get("http://localhost:8080/team/getAll")
    // return axios.get("localhost:8080/team/getAll")
}